package com.test.reggieadmin.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class PageBean {

    /**
     * code : 200
     * msg : 操作成功
     * data : [{"id":"1562361678063980545","username":"xiaoqi","name":"小七","password":"e10adc3949ba59abbe56e057f20f883e","phone":"176","sex":"1","idNumber":"4127","status":1,"createTime":"2022-08-24 16:50:26","updateTime":"2022-08-25 11:28:59","createUser":"wangwu","updateUser":"admin"},{"id":"1562011691970875394","username":"xiaoliu","name":"小六","password":"e10adc3949ba59abbe56e057f20f883e","phone":"1","sex":"1","idNumber":"4","status":1,"createTime":"2022-08-23 17:39:43","updateTime":"2022-08-24 16:49:24","createUser":"admin","updateUser":"wangwu"},{"id":"1562010284127571969","username":"wangwu","name":"王五","password":"e10adc3949ba59abbe56e057f20f883e","phone":"176","sex":"1","idNumber":"412723","status":1,"createTime":"2022-08-23 17:34:07","updateTime":"2022-08-23 17:34:07","createUser":"admin","updateUser":"admin"},{"id":"1561911525301428226","username":"lisi","name":"李四","password":"e10adc3949ba59abbe56e057f20f883e","phone":"176","sex":"2","idNumber":"412723","status":1,"createTime":"2022-08-23 11:01:41","updateTime":"2022-08-24 11:00:31","createUser":"admin","updateUser":"admin"},{"id":"1561899055367196674","username":"zhangsan","name":"张三","password":"e10adc3949ba59abbe56e057f20f883e","phone":"176","sex":"2","idNumber":"4127","status":1,"createTime":"2022-08-23 10:12:08","updateTime":"2022-08-25 11:47:35","createUser":"admin","updateUser":"admin"},{"id":"1","username":"admin","name":"管理员","password":"e10adc3949ba59abbe56e057f20f883e","phone":"17633540265","sex":"1","idNumber":"412723199508254637","status":1,"createTime":"2022-08-19 15:28:08","updateTime":"2022-08-23 17:31:57","createUser":"admin","updateUser":"admin"}]
     * map : {}
     * total : 6
     */

    private int code;
    private String msg;
    private MapBean map;
    private long total;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MapBean getMap() {
        return map;
    }

    public void setMap(MapBean map) {
        this.map = map;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class MapBean {
    }

    public static class DataBean implements Parcelable {
        /**
         * id : 1562361678063980545
         * username : xiaoqi
         * name : 小七
         * password : e10adc3949ba59abbe56e057f20f883e
         * phone : 176
         * sex : 1
         * idNumber : 4127
         * status : 1
         * createTime : 2022-08-24 16:50:26
         * updateTime : 2022-08-25 11:28:59
         * createUser : wangwu
         * updateUser : admin
         */

        private String id;
        private String username;
        private String name;
        private String password;
        private String phone;
        private String sex;
        private String idNumber;
        private int status;
        private String createTime;
        private String updateTime;
        private String createUser;
        private String updateUser;

        protected DataBean(Parcel in) {
            id = in.readString();
            username = in.readString();
            name = in.readString();
            password = in.readString();
            phone = in.readString();
            sex = in.readString();
            idNumber = in.readString();
            status = in.readInt();
            createTime = in.readString();
            updateTime = in.readString();
            createUser = in.readString();
            updateUser = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeString(username);
            dest.writeString(name);
            dest.writeString(password);
            dest.writeString(phone);
            dest.writeString(sex);
            dest.writeString(idNumber);
            dest.writeInt(status);
            dest.writeString(createTime);
            dest.writeString(updateTime);
            dest.writeString(createUser);
            dest.writeString(updateUser);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getIdNumber() {
            return idNumber;
        }

        public void setIdNumber(String idNumber) {
            this.idNumber = idNumber;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getCreateUser() {
            return createUser;
        }

        public void setCreateUser(String createUser) {
            this.createUser = createUser;
        }

        public String getUpdateUser() {
            return updateUser;
        }

        public void setUpdateUser(String updateUser) {
            this.updateUser = updateUser;
        }
    }
}
